import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '../views/login'

Vue.use(VueRouter)

const routes = [{
        path: '/',
        name: 'login',
        component: Login,
    },
    {
        path: '/receipt',
        component: () =>
            import ('@/views/receipt')
    }
]

const router = new VueRouter({
    mode: 'history',
    routes
})

export default router